package com.ruoyi.car.service.parts.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.car.mapper.parts.TbPartMotorInformationMapper;
import com.car.pojo.TbPartMotorInformation;
import com.ruoyi.car.service.parts.ITbPartMotorInformationService;
import com.ruoyi.common.core.text.Convert;

@Service
public class TbPartMotorInformationServiceImpl implements ITbPartMotorInformationService
{
    @Autowired
    private TbPartMotorInformationMapper tbPartMotorInformationMapper;

    @Override
    public TbPartMotorInformation selectTbPartMotorInformationById(Long driveId)
    {
        return tbPartMotorInformationMapper.selectTbPartMotorInformationById(driveId);
    }


    @Override
    public List<TbPartMotorInformation> selectTbPartMotorInformationList(TbPartMotorInformation tbPartMotorInformation)
    {
        return tbPartMotorInformationMapper.selectTbPartMotorInformationList(tbPartMotorInformation);
    }

    @Override
    public int insertTbPartMotorInformation(TbPartMotorInformation tbPartMotorInformation)
    {
        return tbPartMotorInformationMapper.insertTbPartMotorInformation(tbPartMotorInformation);
    }


    @Override
    public int updateTbPartMotorInformation(TbPartMotorInformation tbPartMotorInformation)
    {
        return tbPartMotorInformationMapper.updateTbPartMotorInformation(tbPartMotorInformation);
    }


        @Override
    public int deleteTbPartMotorInformationByIds(String ids)
    {
        return tbPartMotorInformationMapper.deleteTbPartMotorInformationByIds(Convert.toStrArray(ids));
    }


    @Override
    public int deleteTbPartMotorInformationById(Long driveId)
    {
        return tbPartMotorInformationMapper.deleteTbPartMotorInformationById(driveId);
    }
}
